var util = require('./utils/util');
App({
    util: util,
    siteroot: "https://www.koulie.cn/meng/",
    is_loging: false,
    token: '',
    index: 4,
    active: 1,
    userinfo: '',
    accountId: '',
    box_icon: '',
    onLaunch: function (e) {
        if (wx.getStorageSync('userinfo')) {
            this.userinfo = wx.getStorageSync('userinfo')
        }
        wx.getSystemInfo({
          success: (result) => {
              this.globalData.systemOs = result.platform;
          },
        })
    },
    globalData: {
        isIphoneX: false,
        userInfo: null,
        statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'],
        systemOs: ''
    }
})
